package com.sumainfor.pc.market.controller.servicemanger;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.common.utlis.PageUtils;
import com.sumainfor.common.utlis.Pager;
import com.sumainfor.pc.market.service.SeHousingInfoService;
import com.sumainfor.pc.market.service.SeHousingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 服务中心房源定价
 */
@RestController
@RequestMapping("/servicemanger/SeHousing")
public class SeHousingController implements Serializable {
    @Autowired
    private SeHousingService seHousingService;
    /**
     *查询房源的整租建议价
     */
    @GetMapping("/getSeHousingGrossMargin")
    public JsonResult getSeHousingGrossMargin(@RequestParam Map<String,Object>params){
        JsonResult result=new JsonResult();
        Map<String,Object> map=seHousingService.getSeHousingGrossMargin(params);
        if (map!=null){
            result.put(map);
        }else{
            result.putFailed("服务器繁忙");
        }
        return result;
    }
}
